﻿using UnityEngine;
using System.Collections;

public class Medicine : UsableInventoryObject {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public override bool Use (GameObject target)
	{
		PlayerAttributes pa = (PlayerAttributes) target.GetComponent("PlayerAttributes");
		if (pa != null) {
			pa.AddFood(100.0f);
			pa.AddDrink(100.0f);
			pa.AddEnergy(100.0f);
			return true;
		} else {
			return false;
		}
	}
}
